package com.SmartCare.controller.client;

import com.SmartCare.common.Result;
import com.SmartCare.common.dto.homeInfo.AppreciateDTO;
import com.SmartCare.service.homeInfo.AppreciateService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

@RestController
@RequestMapping("/appreciate")
@Api(tags = "C端评价")
@Slf4j
public class AppreciateController {
    @Resource
    private AppreciateService appreciateService;

    @PostMapping("/new")
    public Result add(@RequestBody AppreciateDTO info){
        return appreciateService.addAppreciate(info);
    }
}
